package com.xauto.pioneer.appuser.model;

import org.json.JSONObject;

/**
 * 会员认证信息
 * Created by Lemon on 22/04/2017.
 */
public class MemberAuth extends BaseModel<MemberAuth> {

    /** 会员认证状态(1-已认证/0-未认证/2-认证中)*/
    public String member_auth_status;
    /** 身份证认证状态(1-已认证/0-未认证/2-认证中)*/
    public String id_number_auth_status;
    /** 手持身份证认证状态(1-已认证/0-未认证/2-认证中)*/
    public String id_number_with_people_auth_status;
    /** 驾照认证状态(1-已认证/0-未认证/2-认证中)*/
    public String driving_license_auth_status;
    /** 银行信息(1-已认证/0-未认证/2-认证中)*/
    public String id_number_bank_status;;

    @Override
    public MemberAuth parse(JSONObject jsonObject) {
        if(jsonObject != null) {
            member_auth_status = jsonObject.optString("member_auth_status");
            id_number_auth_status = jsonObject.optString("id_number_auth_status");
            id_number_with_people_auth_status = jsonObject.optString("id_number_with_people_auth_status");
            driving_license_auth_status = jsonObject.optString("driving_license_auth_status");
            id_number_bank_status= jsonObject.optString("id_number_bank_status");
            return this;
        }
        return null;
    }
}
